package com.exception;

import com.result.CodeMsg;

/**
 * @author lvcaihong
 * @dtae 2019/3/4 15:03
 */
public class GlobalException extends RuntimeException {

    private static final long serialVersionUID = -3039702617147787701L;

    private CodeMsg codeMsg;


    public CodeMsg getCodeMsg() {
        return codeMsg;
    }

    public void setCodeMsg(CodeMsg codeMsg) {
        this.codeMsg = codeMsg;
    }

    public GlobalException(CodeMsg codeMsg){
        super(codeMsg.toString());
        this.codeMsg = codeMsg;
    }

}
